# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=tree-sitter-gleam
pkgver=1.0.0
pkgrel=0
pkgdesc="Gleam grammar for tree-sitter"
url="https://github.com/gleam-lang/tree-sitter-gleam"
arch="all"
license="Apache-2.0"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/gleam-lang/tree-sitter-gleam/archive/v$pkgver/tree-sitter-gleam-$pkgver.tar.gz"
options="!check" # Tests fail

build() {
	abuild-tree-sitter build
}

check() {
	tree-sitter test
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
ee7480dcf7a0a799b127417cdfe823c9683b5f25612a63014582420fec974e88b6965235c028533fd37bb8faec1db034b74ff0051586fa810cb8ad19b8f6735b  tree-sitter-gleam-1.0.0.tar.gz
"
